/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ZhongJinTao
 * Date: 2024-10-21
 * Time: 21:12
 */
public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        solution.minOperations(new int[]{8828,9581,49,9818,9974,9869,9991,10000,10000,10000,9999,9993,9904,8819,1231,6309}, 134365);
    }
}